package com.chen.springboot.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 球员表
 * @author chenchao
 * @date 2022/6/22 14:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("player")
@ApiModel
public class Player extends Model<Player> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("displayName")
    @ApiModelProperty("球队名称")
    private String displayName;

    @TableField("country")
    @ApiModelProperty("国籍")
    private String country;

    @TableField("height")
    @ApiModelProperty("身高")
    private String height;

    @TableField("position")
    @ApiModelProperty("主打位置")
    private String position;

    @TableField("weight")
    @ApiModelProperty("体重")
    private String weight;

    @TableField("playerImg")
    @ApiModelProperty("球员头像")
    private String playerImg;

    @TableField("displayAbbr")
    @ApiModelProperty("所在球队")
    private String displayAbbr;
}
